import React from 'react';
import ReactDOM from 'react-dom';
// import moment from 'moment';
// import { connect } from 'dva';
import { Button, Radio, Layout, Select, DatePicker, Table, Divider, Tag } from 'antd';
// @connect(({ patrol }) => ({ patrol }))
class Biological extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      iFrameHeight: '0px'
    };
  }
  
  render() {
    return (
      <Layout style={{ background: '#fff' }}>
        <iframe 
          // src="http://39.108.175.35:8080/hsh/wzbhyy/index.jhtml" 
          src="http://121.36.94.43/hshweb/wzbhyy/index.jhtml"
          onLoad={() => {
            this.setState({
                "iFrameHeight":  document.body.scrollHeight
            });
          }} 
          style={{display: 'block', paddingBottom: '50px' }}
          ref="iframe"
          width="100%"
          height={this.state.iFrameHeight}
          // scrolling="no" 
          frameBorder="0"
        />
      </Layout>
    );
  }
}

export default Biological;
